﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace AIStudio.Util.Primitives
{
    public class D_UserMessageDTO
    {        /// <summary>
             /// 自然主键
             /// </summary>
        [Key, Column(Order = 1)]
        [MaxLength(50)]
        public virtual string Id { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public bool Deleted { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        [MaxLength(50)]
        public string CreatorId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(255)]
        public string CreatorName { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        [MaxLength(50)]
        public string ModifyId { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [MaxLength(255)]
        public string ModifyName { get; set; }

        /// <summary>
        /// 租户Id
        /// </summary>
        [MaxLength(50)]
        public virtual string TenantId { get; set; }

        public string UserIds { get; set; }
        public string UserNames { get; set; }
        public string Text { get; set; }

        public int Type { get; set; }
        public string ReadingMarks { get; set; }
        public string GroupId { get; set; }

        public string GroupName { get; set; }

        /// <summary>
        /// 状态 =0草稿中，=1已发送，=2废弃撤回，=3发送失败
        /// </summary>
        public int Status { get; set; }
        public string Avatar { get; set; }
        public string Role { get; set; }

        public bool ShowTime { get; set; }
    }
}
